<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Format date test</title>
<script type="text/javascript" src="../liwe.js"></script>
<script type="text/javascript" src="../utils.js"></script>
<script type="text/javascript" src="../object_enh.js"></script>
<script type="text/javascript" src="../array_enh.js"></script>
<script type="text/javascript" src="../date_enh.js"></script>
<script type="text/javascript" src="../string_enh.js"></script>
<script type="text/javascript">

function test_date_format ()
{
	var a = Array.fromForm ( 'my_form' );
	var d = new Date ( a.mydate );
	var frmt = d.format_date ( a.format );
	console.debug ( "data format: %s - data js : %o ", frmt, d );
}

</script>
</head> 
<body>

<table id="my_form">
<tr><td>data</td><td><input id="d_field" type="text" name="mydate" /></td></tr>
<tr><td>formato</td><td><input id="f_field" type="text" name="format" /></td></tr>
<tr><td colspan="2" align="center"><a href="javascript:test_date_format()">Format date</a></td></tr>
</table>


</body>
</html>
